package com.freeter.modules.gjs.service;

import com.freeter.modules.gjs.entity.UserRoles;
import java.util.List;

public interface UserRolesService {
    List<UserRoles> getAllUserRoles();
    UserRoles getUserRolesById(Long id);
    List<UserRoles> getUserRolesByUserId(Long userId);
    List<UserRoles> getUserRolesByRoleCode(String roleCode);
    List<UserRoles> getUserRolesByRoleName(String roleName);
    UserRoles getUserRolesByUserAndRole(Long userId, String roleCode);
    List<UserRoles> getUserRolesByStatus(String status);
    UserRoles createUserRoles(UserRoles userRoles);
    UserRoles updateUserRoles(Long id, UserRoles userRoles);
    boolean deleteUserRoles(Long id);
    boolean deleteUserRolesByUserAndRole(Long userId, String roleCode);
    List<UserRoles> getUserRolesByCondition(String name, Integer state);
} 